

        <g:set var="entityName" value="${message(code: 'remark.label', default: 'Remark')}" />
             <g:form action="save" method="post" name="createRemark">
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="title"><g:message code="remark.title.label" default="Title" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: remarkInstance, field: 'title', 'errors')}">
                                    <g:textField name="title" maxlength="50" value="${remarkInstance?.title}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="content"><g:message code="remark.content.label" default="Content" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: remarkInstance, field: 'content', 'errors')}">
                                    <g:textArea name="content" cols="40" rows="5" value="${remarkInstance?.content}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="student"><g:message code="remark.student.label" default="Student" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: remarkInstance, field: 'student', 'errors')}">
                                    <g:select name="student.id" class="select" from="${Student.list()}" optionKey="id" value="${remarkInstance?.student?.id}" noSelection="['null': '']" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="teacher"><g:message code="remark.teacher.label" default="Teacher" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: remarkInstance, field: 'teacher', 'errors')}">
                                    <g:select name="teacher.id" class="select" from="${Teacher.list()}" optionKey="id" value="${remarkInstance?.teacher?.id}" noSelection="['null': '']" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="createTime"><g:message code="remark.createTime.label" default="Create Time" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: remarkInstance, field: 'createTime', 'errors')}">
                                    <g:datePicker name="createTime" class="select" precision="day" value="${remarkInstance?.createTime}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="post"><g:message code="remark.post.label" default="Post" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: remarkInstance, field: 'post', 'errors')}">
                                    <g:select name="post.id" class="select" from="${Post.list()}" optionKey="id" value="${remarkInstance?.post?.id}"  />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
            </g:form>